<script setup lang="ts">
defineProps<{
  modelValue: string
}>()

const emit = defineEmits<{
  (e: 'update:modelValue', val: string): void
}>()

const handleChangeNum = () => {
  emit('update:modelValue', '沃尔沃')
}
</script>

<template>
  <div>
    <h1>son- {{ modelValue }}</h1>
    <button @click="handleChangeNum">改数字</button>
  </div>
</template>

<style scoped></style>
